<include file="./Application/Admin/View/Public/htmlheader.html" />
<include file="./Application/Admin/View/Public/header.html" />
<include file="./Application/Admin/View/Public/left.html" />

<ol class="breadcrumb">
    <li><a href="/Admin/User/userList">用户列表</a></li>
    <li class="active">修改用户</li>
</ol>

<form action="/Admin/User/save" method="post" enctype="multipart/form-data">
    <input type="hidden" name="id" value="{$user['id']}">
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>用户名：</div>
        <div class="col-lg-3">{$user['username']}</div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>头像：</div>
        <div class="col-lg-3">
            <img src="{$user['picture']}" width="50" />
            <input type="file" name="picture" class="form-control" />
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>昵称：</div>
        <div class="col-lg-3"><input type="text" name="nickname" value="{$user['nickname']}" class="form-control" /></div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>密码：</div>
        <div class="col-lg-3"><input type="text" name="password" placeholder="留空即不修改密码" value="" class="form-control" /></div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>身份：</div>
        <div class="col-lg-3">
            <if condition="$user['permission'] eq 0">
                <input type="radio" name="permission" value="0" checked>普通用户
                <input type="radio" name="permission" value="1">主播
                <input type="radio" name="permission" value="2">管理员
                <!--<input type="radio" name="permission" value="3">房管-->
                <elseif  condition="$user['permission'] eq 1" />
                <input type="radio" name="permission" value="0" >普通用户
                <input type="radio" name="permission" value="1" checked>主播
                <input type="radio" name="permission" value="2">管理员
                <!--<input type="radio" name="permission" value="3">房管-->
                <elseif  condition="$user['permission'] eq 3" />
                <input type="radio" name="permission" value="0" >普通用户
                <input type="radio" name="permission" value="1">主播
                <input type="radio" name="permission" value="2">管理员
                <!--<input type="radio" name="permission" value="3" checked>房管-->
                <else />
                <input type="radio" name="permission" value="0" >普通用户
                <input type="radio" name="permission" value="1" >主播
                <input type="radio" name="permission" value="2" checked>管理员
                <!--<input type="radio" name="permission" value="3">房管-->
            </if>
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>状态：</div>
        <div class="col-lg-3">
            <if condition="$user['status'] eq 0">
                <input type="radio" name="status" value="0" checked> <span class="red">禁用</span>
                <input type="radio" name="status" value="1"> <span class="green">起用</span>
                <else />
                <input type="radio" name="status" value="0"> <span class="red">禁用</span>
                <input type="radio" name="status" value="1" checked> <span class="green">起用</span>
            </if>
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3"></div>
        <div class="col-lg-3"><button type="submit" class="btn btn-primary">确定</button></div>
    </div>
</form>
<include file="./Application/Admin/View/Public/footer.html" />